package com.huangpeng.designmodel.observer;

/**
 * @Author huangpeng
 * @Title 具体观察者
 * @Package
 * @Date 2020/10/26 10:33
 * @Description 具体观察者
 * @Version 1.0
 */
public class SupervisorObserver extends Observer {
    public SupervisorObserver(Message message) {
        this.message = message;
        this.message.attach(this);
    }

    @Override
    public void update() {
        System.out.println( "Supervisor我已同步消息 msg: " +  message.getMsg());
    }
}
